package github.saw96x.remoting.transport;

import github.saw96x.common.extension.SPI;
import github.saw96x.remoting.pojo.RpcRequest;

/**
 * 发送Rpc请求
 *
 * @author Saw96x
 * @date 2022/3/18 8:48
 */
@SPI
public interface RpcRequestTransport {
  /**
   * send rpc request to server and get result
   *
   * @param rpcRequest message body
   * @return data from server
   */
  Object sendRpcRequest(RpcRequest rpcRequest);
}

